package four_File;

import java.io.*;

public class CopyChar {
    public static void main(String[] args) throws IOException {
        File fileIn = new File("mian\\src\\four_File\\from.txt");
        File fileOut = new File("mian\\src\\four_File\\to.txt");

        BufferedReader br = new BufferedReader(new FileReader(fileIn));
        BufferedWriter bw = new BufferedWriter(new FileWriter(fileOut));

        String line;
        while ((line = br.readLine()) != null) {
            bw.write(line);
            bw.newLine();
            bw.flush();
        }

        br.close();
        bw.close();
    }
}
